package c.h.a.b0;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import androidx.appcompat.app.AlertController;
import b.b.c.f.a;
import b.l.a.b;
import b.l.a.h;
import com.liuzh.deviceinfo.DeviceInfoApp;

/* compiled from: RationaleDialog */
public class o extends b {
    public static final /* synthetic */ int i0 = 0;

    public static void q0(Activity activity, int i, int i2) {
        a aVar = new a(activity);
        AlertController.b bVar = aVar.a;
        bVar.d = bVar.a.getText(i);
        AlertController.b bVar2 = aVar.a;
        bVar2.f = bVar2.a.getText(i2);
        aVar.d(2131689955, new h(activity));
        aVar.b(17039360, null);
        aVar.g();
    }

    public static void r0(h hVar, int i, int i2) {
        Bundle bundle = new Bundle();
        bundle.putString("title", DeviceInfoApp.c.getString(i));
        bundle.putString("msg", DeviceInfoApp.c.getString(i2));
        o oVar = new o();
        oVar.e0(bundle);
        oVar.o0(false);
        oVar.p0(hVar, oVar.toString());
    }

    public Dialog n0(Bundle bundle) {
        CharSequence string;
        bundle = this.f;
        CharSequence charSequence = "";
        if (bundle != null) {
            charSequence = bundle.getString("title");
            string = bundle.getString("msg");
        } else {
            string = charSequence;
        }
        a aVar = new a(Z());
        AlertController.b bVar = aVar.a;
        bVar.d = charSequence;
        bVar.f = string;
        aVar.d(2131689955, new i(this));
        aVar.b(17039360, null);
        return aVar.a();
    }
}
